package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class As extends AbstractMethod {
    private static final String name = "as";
    /**
    Prefix names for all fields from the respective nodes. Each field from the parent nodes will be prefixed with the provided name and a . See the example below.
    **/
    /**
    各个节点中所有字段的前缀名称。父节点的每个字段都将以提供的名称和a作为前缀。请参见下面的示例。
    **/
    public As(String ...names) {
        super(new ArrayList<>(), name);
        //
        for(String argf : names){
            this.args.add(new SingleQuotesArg(argf));
        }


    }
}
